package com.rem.chat.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: Themberfue
 * @date: 2025/6/11 16:39
 * @description:
 */
@AllArgsConstructor
@Getter
public enum AppUpdateFileTypeEnum {
    LOCAL(0, "本地"),
    OUTER_LINK(1, "外链");

    private final Integer status;
    private final String desc;

    public static AppUpdateFileTypeEnum getByStatus(Integer status) {
        try {
            for (AppUpdateFileTypeEnum item: AppUpdateFileTypeEnum.values()) {
                if (status.equals(item.getStatus())) {
                    return item;
                }
            }
            return null;
        } catch (Exception e) {
            return null;
        }
    }
}
